import React from "react";
function Hello(props) {
  console.log(props);
  return (
    <div>
      hello组件---{props.name}---{props.age}---{props.gender}
    </div>
  );
}
export default Hello;

// 或者 export default function Hello(){....}  创建即暴露出去
